package com.itsv.news.adapter;

import com.itsv.news.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class GvPicAdapter extends BaseAdapter{
	
	private Context con=null;
	private LayoutInflater inflater = null;
	public GvPicAdapter(Context con){
		this.con=con;
		inflater = LayoutInflater.from(con);
	}
	
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 20;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		if(convertView==null){
			convertView=inflater.inflate(R.layout.gv_item,null);
			
		}
		return convertView;
	}

}
